﻿@model ItemStatistics.ViewModels.ReciveInfoVMs.ReciveInfoListVM
@inject IStringLocalizer<Program> Localizer;
@if (Model.Searcher.CustomerId != null)
{
	<wt:searchpanel vm="@Model" reset-btn="true" style="display:none;">
		<wt:row items-per-row="ItemsPerRowEnum.Three">
			<wt:combobox field="Searcher.CustomerId" items="Searcher.AllCustomers" empty-text="@Localizer["Sys.All"]" />
			<wt:combobox field="Searcher.GiftId" items="Searcher.AllGifts" empty-text="@Localizer["Sys.All"]" />
		</wt:row>
	</wt:searchpanel>
}
else
{
	<wt:searchpanel vm="@Model" reset-btn="true">
		<wt:row items-per-row="ItemsPerRowEnum.Three">
			<wt:combobox field="Searcher.CustomerId" items="Searcher.AllCustomers" empty-text="@Localizer["Sys.All"]" />
			<wt:combobox field="Searcher.GiftId" items="Searcher.AllGifts" empty-text="@Localizer["Sys.All"]" />
		</wt:row>
	</wt:searchpanel>
}

<wt:grid vm="@Model" url="/ReciveInfo/Search"/>
